# import turtle as t
# t.speed(100)
# a = int(10)
# r = 20
# while r<=110:
#    t.circle(r,360)
#    r = r+a
# t.left(90)
# a1 = int(10)
# r1 = 20
# while r1<=110:
#   t.circle(r1,360)
#   r1 = r1+a1
# t.left(90)
# a2 = int(10)
# r2 = 20
# while r2<=110:
#   t.circle(r2,360)
#   r2 = r2+a2
# t.left(90)
# a3 = int(10)
# r3 = 20
# while r3<=110:
#   t.circle(r3,360)
#   r3 = r3+a3
# t.done()
#
#
# import turtle as t
# t.pencolor("purple")
# t.pensize(10)
# t.pu()
# i=10
# a=10
# r=20
# t.circle(r,337.5)
# t.pd()
# #将笔调好位置
# t.circle(r,90)
# t.right(157.5)
# #左小半不完全部分
# t.circle(r,180)
# t.right(180)
# while a<=30:
#     t.circle(r, 180)
#     t.right(180)
#     a=a+i
# #抽象的几字形状
# t.left(90)
# t.forward(50)
# t.circle(r,180)
# t.forward(50)
# t.done()



# 自由绘图

# import turtle as t
# t.bgcolor('black')
# t.pensize(2)
# randomColor =['red','blue','green','purple','gold','pink']
# t.speed(100000000000000000000000000000000000000000000000000000000000000000000000000000000000)
# for i in range(220):
#   t.color(randomColor[i%6])
#   t.circle(i)
#   t.right(60+1)
#   t.up()
#   t.goto(0,0)
#   t.down()
# t.done()



# import turtle as t
# t.bgcolor('black')
# t.pensize(2)
# randomColor =['red','blue','green','purple','gold','pink']
# t.speed(100000000000000000000000000000000000000000000000000000000000000000000000000000000000)
# for i in range(220):
#   t.color(randomColor[i%6])
#   t.forward(i)
#   t.right(90)
#   t.forward(i)
#   t.right(90)
#   t.forward(i)
#   t.right(90)
#   t.forward(i)
#   t.right(60+1)
#   t.up()
#   t.goto(0,0)
#   t.down()
# t.done()




# print("请按(开机键)5先启动系统")
# use1=eval(input())
# if use1==5:
#
#   print("************************************\n")
#   print("*******       人事管理系统       ******\n")
#   print("************************************\n")
#   print("*******       1.添加员工       *******\n")
#   print("*******       2.删除员工       ******\n")
#   print("*******       3.修改信息       ******\n")
#   print("*******       4.退出系统       ******\n")
#   print("************************************\n")
#   print("************************************\n")
#
#   list={'添加员工','删除员工','修改信息','退出系统'}
#   list1={'张三','李四','王五'}
#
#   while(use1):
#     print("请输入指令：")
#     use = eval(input())
#     if use == 1:
#       print("请先输入要添加的位置的索引，再输入要添加的信息。")
#       list1.insert(len(list1),input())
#       print("添加成功！\n")
#       print(list1)
#     elif use == 2:
#       if input() in list1:
#         list1.remove(input())
#         print("删除成功！\n")
#         print(list1)
#       else:
#           print("未找到。")
#     elif use == 3:
#       print(list1)
#       print("请先输入要需要修改的索引，再输入要修改的信息。")
#       index=int(input())
#       if 0<=index<len(list1):
#         list[index]=input()
#         print("修改成功！\n")
#         print(list1)
#       else:
#         print("输入超出范围。")
#     elif use == 4:
#       use1-=5
#       print("已退出系统。")
#     else:
#       print("输入有误，请重新输入。")


#请使用函数完成工作量计算器小程序，要求有采集函数、计算函数和重复函数。


# def work1():
#   work_hours = eval(input("请输入工作小时数："))
#   rate_per_hour = eval(input("请输入每小时的工作费率："))
#   return work_hours, rate_per_hour
# def work2(work_hours, rate_hour):
#   workload = work_hours * rate_hour
#   return workload
# def work3():
#   choice = input("是否继续计算？（y/n）")
#   return choice.lower() == 'y'
# while True:
#   work_hours, rate_hour = work1()
#   work = work2(work_hours, rate_hour)
#   print(f"工作量为：{work}")
#   if not work3():
#     break


# 实现一个用户登录界面，用户输入用户名和密码，选择“登录”按钮，弹出消息框显示“登陆成功”，
# 否则，弹出消息显示“登陆失败”；用户选择“退出”按钮，登录界面关闭（假设用户名与密码都是admin）


# from tkinter import Tk, Label, Entry, Button, messagebox
#
# def fun1():
#     user = entry1.get()
#     word = entry2.get()
#     if user == "admin" and word == "admin":
#         messagebox.showinfo("登录成功", "登陆成功")
#     else:
#         messagebox.showerror("登录失败", "登陆失败")
#
# def fun2():
#     root.destroy()
#
# root = Tk()
#
# label_user = Label(root, text="用户名：")
# label_user.pack()
# entry1 = Entry(root)
# entry1.pack()
#
# label_word = Label(root, text="密码：")
# label_word.pack()
# entry2 = Entry(root, show="*")
# entry2.pack()
#
# button_ss = Button(root, text="登录", command=fun1)
# button_ss.pack()
#
# button_exit = Button(root, text="退出", command=fun2)
# button_exit.pack()
#
# root.mainloop()


# print("请输入(范围0-10)：")
# num=eval(input())
# if 0<num<5:
#     print(666)
# elif 5<num<=10:
#     print(f"孩子你无敌了{1+665}")
# else:
#     print(0)




# a=10
# b=9
# print(a>b)
# print(a<b)


# year=eval(input(f"请输入年份：" ))
# if year%400==0 or (year%4==0 and year%100!=0):
#     print(f"{year}是闰年")
# else:
#     peint(f"{year}是平年")
